<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p>数组</p>
        <div v-for="(item,index) in array":key="item.id">
            {{index+' '+item}}
        </div>
        <p>对象</p>
        <div v-for="(value,key) in object">
            {{key}}:{{value}}
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14"></script>
    <script>
        new Vue({
            el:"#app",
            data:{
                array:[1,2,3,4,5,6],
                object:{
                    name:"11",
                    age:11,
                    height:"111cm"
                },

            },
        })
    </script>
</body>
</html>